#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main() {
	int i;
	char arr[4] = {};
	for (i = 0;i<4; i++) {
		scanf("%c", &arr[i]);
		if (arr[i] >= 'A' && arr[i] <= 'Z')
			printf("%c", arr[i] + 32);
		else if (arr[i] >= 'a' && arr[i] <= 'z')
			printf("%c", arr[i] - 32);
		else if (arr[i] >= '0' && arr[i] <= '9') 
			printf("*");
		else printf("@");
	}
	return 0;
}